<?php
namespace app\common\validate;
use \think\Validate;

class Order extends Validate
{
    
    protected $rule = [
        'zid'      => ['require'],
        'case'     => ['require'],
        'score'      => ['number'], 
    ];

    protected $message = [
        'zid.require'      => '用户必须填写',
        'case.require'     => '添加说明必须填写',
        'score.number'       => '积分只能是一个数字',

    ];

    protected $scene = [
        'add'        => ['zid', 'case', 'score'],
        'edit'        => ['zid', 'case', 'score'],
    ];

}
